package com.army.stock.service;

import com.alibaba.fastjson.JSONObject;
import com.army.stock.domain.ArmyMonthplan;
import com.javalife.common.domain.page.PaginatedArrayList;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * Created by zhangyong on 15/1/7.
 */
public interface ArmyMonthplanService {

    public PaginatedArrayList getArmyMonthplanPageInfo(int currentPage, int pageSize, Map<String, Object> map);

    //重点的json
    public Long addArmyMonthplan(String json);

    public void addArmyMonthplan(ArmyMonthplan armyMonthplan);

    public Map<String, Object> addArmyMonthplan(JSONObject jsonObject);

    public ArmyMonthplan getArmyMonthplanById(Long id);

    public PaginatedArrayList getArmyMonthplanItemsPageInfo(int currentPage, int pageSize, Map<String, Object> map);

    public boolean checkExist(Long monthPlanId, Long goodid);

    public List getAllArmyMonthplanItems(Long id);

    public Map<String, Object> updateArmyMonthplan(JSONObject jsonObject);

    public void reviewArmyMonthplan(ArmyMonthplan armyMonthplan);

    public void applyArmyMonthplan(Long MonthplanId, Integer status);

    public PaginatedArrayList getArmyMonthplanPageInfoForFinance(int currentPage, int pageSize, Map<String, Object> map);

    public List<ArmyMonthplan> getArmyMonthplanByDepartmentId(Long departmentId);

    public PaginatedArrayList getArmyMonthplanItemsPageInfoForInstorage(int currentPage, int pageSize, Map<String, Object> map);

    public List<Map> getAllArmyMonthplanItems(Map map);

    public List<Map> getmonthplanssummary(Map map);

    public BigDecimal getSummonthplanssummary(Map map);


}
